package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 调查问卷
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_survey")
public class Survey extends Model<Survey> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Long id;
    /**
     * 调查问卷标题
     */

	@TableField("title")
	private String title;
    /**
     * 问卷调查描述
     */

	@TableField("description")
	private String description;
    /**
     * 用户完成问卷调查提示的文本内容
     */

	@TableField("finish_text")
	private String finishText;
    /**
     * 问卷调查开始时间
     */

	@TableField("start_time")
	private Date startTime;
    /**
     * 问卷调查结束时间
     */

	@TableField("end_time")
	private Date endTime;
    /**
     * 参与问卷调查人次
     */

	@TableField("answer_count")
	private Long answerCount;
    /**
     * 问卷状态，0表示禁用，1表示启用
     */

	@TableField("status")
	private Integer status;
    /**
     * 操作时间（创建/修改）
     */

	@TableField("operate_time")
	private Date operateTime;
    /**
     * 操作人id
     */

	@TableField("operate_id")
	private Long operateId;


	public Long getId() {
		return id;
	}

	public Survey setId(Long id) {
		this.id = id;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public Survey setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getDescription() {
		return description;
	}

	public Survey setDescription(String description) {
		this.description = description;
		return this;
	}

	public String getFinishText() {
		return finishText;
	}

	public Survey setFinishText(String finishText) {
		this.finishText = finishText;
		return this;
	}

	public Date getStartTime() {
		return startTime;
	}

	public Survey setStartTime(Date startTime) {
		this.startTime = startTime;
		return this;
	}

	public Date getEndTime() {
		return endTime;
	}

	public Survey setEndTime(Date endTime) {
		this.endTime = endTime;
		return this;
	}

	public Long getAnswerCount() {
		return answerCount;
	}

	public Survey setAnswerCount(Long answerCount) {
		this.answerCount = answerCount;
		return this;
	}

	public Integer getStatus() {
		return status;
	}

	public Survey setStatus(Integer status) {
		this.status = status;
		return this;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public Survey setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
		return this;
	}

	public Long getOperateId() {
		return operateId;
	}

	public Survey setOperateId(Long operateId) {
		this.operateId = operateId;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}